Alexander Larsson [Thu, 7 Feb 2013 10:10:37 +0000 (11:10 +0100)]
css: Add opacity reftest
https://bugzilla.gnome.org/show_bug.cgi?id=687842
Alexander Larsson [Wed, 6 Feb 2013 13:29:22 +0000 (14:29 +0100)]
css: Support opacity
https://bugzilla.gnome.org/show_bug.cgi?id=687842
Alexander Larsson [Wed, 6 Feb 2013 13:28:20 +0000 (14:28 +0100)]
Add singleton for css number 1.0
This will be nice as this is will be the default for opacity.
https://bugzilla.gnome.org/show_bug.cgi?id=687842
Alexander Larsson [Tue, 5 Feb 2013 11:27:39 +0000 (12:27 +0100)]
TextHandle: Don't draw handles if not visible
When calling gtk_widget_draw() on the entry gtk_cairo_should_draw_window()
will return TRUE for all windows. This is used when rendering a widget to
somewhere other than the screen, and its now used for transparent widgets.
This caused the texthandle to always draw itself and terminate the draw
handler for the entry.
Instead we now only draw the markers when really visible, plus we return
FALSE to avoid stopping the entry drawing.
https://bugzilla.gnome.org/show_bug.cgi?id=687842
Alexander Larsson [Mon, 4 Feb 2013 10:14:41 +0000 (11:14 +0100)]
Add widget transparency test to testgtk
https://bugzilla.gnome.org/show_bug.cgi?id=687842
Alexander Larsson [Wed, 7 Nov 2012 13:32:35 +0000 (14:32 +0100)]
Add gtk_widget_get/set_opacity
This adds gtk_widget_get/set_opacity, as well as a GtkWidget.opacity
property. Additionally it deprectates gtk_window_get/set_opacity and
removes the GtkWindow.opacity property (in preference for the new
identical inherited property from GtkWidget, which should be ABI/API
compat).
The implementation is using the new gdk_window_set_opacity child
window support for windowed widgets, and cairo_push/pop_group()
bracketing in gtk_widget_draw() for non-window widgets.
https://bugzilla.gnome.org/show_bug.cgi?id=687842
Alexander Larsson [Tue, 5 Feb 2013 08:36:49 +0000 (09:36 +0100)]
Add gtk_widget_(un)register_window
This replaces the previously hardcoded calls to gdk_window_set_user_data,
and also lets us track which windows are a part of a widget. Old code
should continue working as is, but new features that require the
windows may not work perfectly.
We need this for the transparent widget support to work, as we need
to specially mark the windows of child widgets.
https://bugzilla.gnome.org/show_bug.cgi?id=687842
Alexander Larsson [Wed, 7 Nov 2012 12:03:32 +0000 (13:03 +0100)]
gdkwindow: Allow gdk_window_set_opacity on non-native children
We now store the current opacity for all windows. For native windows
we just call into the native implementation whenever the opacity changes.
However, for non-native windows we implement opacity by pushing a
second implicit paint that "stacks" on the existing one, acting as
an opacity group while rendering the window and its children.
This works well in general, although any native child windows will of
course not be opaque. However, there is no way to implement
implicit paint flushing (i.e. draw the currently drawn double buffer
to the window in order to allow direct drawing to the window).
We can't flush in the stacked implicit paint case because there
is no way to get the right drawing behaviour when drawing directly
to the window. We *must* draw to the opacity group to get the right
behaviour.
We currently flush if:
* A widget disables double buffering
* You call move/resize/scroll a window and it has non-native children
during the expose handler
In case this happens we warn and flush the outermost group, so there may
be drawing errors.
https://bugzilla.gnome.org/show_bug.cgi?id=687842
Alexander Larsson [Wed, 7 Nov 2012 12:01:09 +0000 (13:01 +0100)]
gdkwindow: Store the implicit paint in a list
This changes nothing, but lets us later have multiple
implicit paints
https://bugzilla.gnome.org/show_bug.cgi?id=687842
Rob Bradford [Wed, 6 Feb 2013 18:08:15 +0000 (18:08 +0000)]
wayland: React to G_IO_ERR and G_IO_HUP on the wayland socket
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=692728
Thomas Wood [Wed, 6 Feb 2013 10:41:06 +0000 (10:41 +0000)]
wayland: remove debug message
https://bugzilla.gnome.org/show_bug.cgi?id=693253
Thomas Wood [Tue, 5 Feb 2013 19:11:02 +0000 (19:11 +0000)]
wayland: avoid returning NULL when getting a cursor
https://bugzilla.gnome.org/show_bug.cgi?id=693257
Thomas Wood [Tue, 5 Feb 2013 19:10:25 +0000 (19:10 +0000)]
wayland: use the GdkCursorType enum information to lookup the cursor name
Use the enum information to generate the cursor name rather than using a
lookup table.
https://bugzilla.gnome.org/show_bug.cgi?id=693256
Thomas Wood [Tue, 5 Feb 2013 17:00:10 +0000 (17:00 +0000)]
wayland: fix the direction of scrolling
Fix the direction of scrolling and convert the delta values into the
expected range.
https://bugzilla.gnome.org/show_bug.cgi?id=693251
Marc-André Lureau [Wed, 6 Feb 2013 16:25:50 +0000 (17:25 +0100)]
Fix a small typo s/parater/parameter
Rob Bradford [Wed, 23 Jan 2013 16:55:59 +0000 (16:55 +0000)]
gdkwindow: Do not rely on a previous slave device when updating grab
_gdk_display_device_grab_update does not support passing in NULL for the
source device. If we don't have a slave device (saved in the pointer info)
then do not try and use that NULL pointer for the source_device.
This bug appeared in the Wayland backend where we (currently) only have master
devices exposed and as such no slave device is ever saved.
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=692411
Rob Bradford [Tue, 5 Feb 2013 18:36:48 +0000 (18:36 +0000)]
build: Bump atk dependency to 2.7.5
The following patch added a dependency on a new API first available in that
release:
commit
92f0c5c38476687a9a50c31eac4f674a7e0b9c91
Author: Mike Gorse <mgorse@suse.com>
Date: Mon Dec 3 16:07:23 2012 -0600
Add accessibility for GtkLevelBar and value test
Rob Bradford [Tue, 5 Feb 2013 18:28:43 +0000 (18:28 +0000)]
wayland: Use g_value_set_static to avoid string copies
Rob Bradford [Tue, 5 Feb 2013 13:08:14 +0000 (13:08 +0000)]
wayland: Pull the cursor theme name out from the setting for it
This avoids us using the default theme and allows us to use a wider range of
cursors.
Rob Bradford [Tue, 5 Feb 2013 13:07:28 +0000 (13:07 +0000)]
wayland: Advertise the cursor theme through GtkSettings as Adwaita
... as per the way we advertise a GTK theme to use.
Piotr Drąg [Mon, 4 Feb 2013 21:12:57 +0000 (22:12 +0100)]
Updated POTFILES.in
Matthias Clasen [Mon, 4 Feb 2013 19:52:14 +0000 (14:52 -0500)]
post-release bump
Matthias Clasen [Mon, 4 Feb 2013 19:13:23 +0000 (14:13 -0500)]
3.7.8
Matthias Clasen [Mon, 4 Feb 2013 18:53:24 +0000 (13:53 -0500)]
Drop things that break distcheck
Luca Ferretti [Mon, 4 Feb 2013 17:39:36 +0000 (18:39 +0100)]
[l10n] Updated Italian translation.
Matthias Clasen [Mon, 4 Feb 2013 15:50:24 +0000 (10:50 -0500)]
Update expected output again
pickers.ui is just too sensitive to environment, and the … in
the output doesn't help.
Matthias Clasen [Mon, 4 Feb 2013 14:27:28 +0000 (09:27 -0500)]
Avoid deprecation warnings in a11y tests
We are testing the deprecated GtkTable here.
Matthias Clasen [Mon, 4 Feb 2013 13:58:03 +0000 (08:58 -0500)]
More updates
Matthias Clasen [Mon, 4 Feb 2013 13:31:13 +0000 (08:31 -0500)]
Fix an sed accident
This broke our css parser tests. Yay for tests !
Chao-Hsiung Liao [Mon, 4 Feb 2013 12:28:51 +0000 (20:28 +0800)]
Updated Traditional Chinese translation(Hong Kong and Taiwan)
Matthias Clasen [Mon, 4 Feb 2013 06:03:37 +0000 (01:03 -0500)]
Update a11y test results to match
Range widgets have lost their action. Update expected output.
Matthias Clasen [Mon, 4 Feb 2013 05:59:14 +0000 (00:59 -0500)]
Remove a no-op AtkAction from GtkRange
The "activate" action here did not do anything.
It is possible we actually want to have some actions here,
like "step-up", "step-down", "page-up", "page-down", etc.
For now, just remove the AtkAction implementation.
https://bugzilla.gnome.org/show_bug.cgi?id=553334
Matthias Clasen [Mon, 4 Feb 2013 05:55:43 +0000 (00:55 -0500)]
Update a11y test results to match
The newly added descriptions show up in the accessible
information dumps.
Matthias Clasen [Mon, 4 Feb 2013 05:53:48 +0000 (00:53 -0500)]
Improve AtkAction implementations
Implement get_localized_name, and also translate the strings
returned by get_description.
https://bugzilla.gnome.org/show_bug.cgi?id=525226
Matthias Clasen [Mon, 4 Feb 2013 05:56:36 +0000 (00:56 -0500)]
Update a11y test results to match
The new way of setting the icons in GtkMessageDialog changes
the accessible dump output slightly.
Matthias Clasen [Sun, 3 Feb 2013 22:58:23 +0000 (17:58 -0500)]
Prefer symbolic icons in message dialogs
Based on a patch in
https://bugzilla.gnome.org/show_bug.cgi?id=680048
William Jon McCann [Mon, 16 Jul 2012 18:53:10 +0000 (14:53 -0400)]
Prefer symbolic icons for the default message dialog image
The icon does not need high resolution or color to indicate the type
of message and the color can detract from the important part of the message.
https://bugzilla.gnome.org/show_bug.cgi?id=680048
Matthias Clasen [Sun, 3 Feb 2013 22:22:48 +0000 (17:22 -0500)]
Clarify docs of GtkTextTag -set properties a bit
https://bugzilla.gnome.org/show_bug.cgi?id=687825
Matthias Clasen [Sun, 3 Feb 2013 21:32:21 +0000 (16:32 -0500)]
a11y: Set up popup-for relation between entry and completion
This may address
https://bugzilla.gnome.org/show_bug.cgi?id=658148
Matthias Clasen [Sun, 3 Feb 2013 20:51:05 +0000 (15:51 -0500)]
Reinstate old-style deprecation guards for wholly-deprecated files
Matthias Clasen [Sun, 3 Feb 2013 20:44:41 +0000 (15:44 -0500)]
Make GtkTextView deal better with !can_focus
This was pointed out in
https://bugzilla.gnome.org/show_bug.cgi?id=693050
Matthias Clasen [Sun, 3 Feb 2013 20:23:48 +0000 (15:23 -0500)]
More updates
Matthias Clasen [Sun, 3 Feb 2013 01:39:53 +0000 (20:39 -0500)]
Make GtkStatusIcon survive on Broadway
Make the X11 GtkStatusIcon implementation deal with
multiple backends.
https://bugzilla.gnome.org/show_bug.cgi?id=693066
Cosimo Cecchi [Sat, 2 Feb 2013 13:08:14 +0000 (14:08 +0100)]
scrolled-window: fix an incorrect gtk-doc comment
Yaron Shahrabani [Sat, 2 Feb 2013 13:05:57 +0000 (15:05 +0200)]
Updated Hebrew translation.
Matthias Clasen [Sat, 2 Feb 2013 04:53:59 +0000 (23:53 -0500)]
Don't build native tools when not cross-compiling
This was my local native build to fail.
Matthias Clasen [Sat, 2 Feb 2013 04:36:00 +0000 (23:36 -0500)]
Revert "Don't use AC_CANONICAL_TARGET"
This reverts commit
cd98eb15cb1532bd80ea0aec13d1adb5aa8aabe7.
It turns out that we just started using AX_PROG_CC_FOR_BUILD, which
for some reason requires AC_CANONICAL_TARGET. That seems wrong to
me, but for now, lets just keep using it.
Erik van Pienbroek [Sun, 27 Jan 2013 14:14:35 +0000 (15:14 +0100)]
Don't build gtk-launch when gio-unix is not available
https://bugzilla.gnome.org/show_bug.cgi?id=682824
Jan Arne Petersen [Wed, 30 Jan 2013 21:05:56 +0000 (22:05 +0100)]
wayland: Add global_remove handler
Do not crash on wl_registry.global_remove events anymore.
https://bugzilla.gnome.org/show_bug.cgi?id=692899
Jan Arne Petersen [Sun, 27 Jan 2013 13:28:43 +0000 (14:28 +0100)]
wayland: Make GdkWaylandDevice public
Rename GdkDeviceCore to GdkWaylandDevice and export it properly in a
header file. Add public accessors for wl_seat, wl_pointer and
wl_keyboard.
https://bugzilla.gnome.org/show_bug.cgi?id=692823
Jan Arne Petersen [Sat, 26 Jan 2013 22:14:57 +0000 (23:14 +0100)]
wayland: Rename GdkWaylandDevice
Rename GdkWaylandDevice to GdkWaylandDeviceData so that GdkDeviceCore
can be renamed to GdkWaylandDevice.
https://bugzilla.gnome.org/show_bug.cgi?id=692823
Jan Arne Petersen [Sat, 26 Jan 2013 22:10:29 +0000 (23:10 +0100)]
wayland: Remove unused, commented out code
https://bugzilla.gnome.org/show_bug.cgi?id=692823
Erik van Pienbroek [Sun, 27 Jan 2013 14:17:32 +0000 (15:17 +0100)]
Only build native-update-icon-cache when no external update-icon-cache binary was found
https://bugzilla.gnome.org/show_bug.cgi?id=692637
Erik van Pienbroek [Sun, 27 Jan 2013 14:19:34 +0000 (15:19 +0100)]
Don't use AC_CANONICAL_TARGET
This autoconf macro should only be used for building compilers
(or compiler tools) for a specific target. The current effect of
it in GTK3 is that it causes various executables like gtk3-demo
to be prefixed with $target- when the --target configure flag
is set or when cross-compiling. When cross-compiling GTK3 on
Linux for the Win32 target this causes the gtk3-demo binary
to be named i686-w64-mingw32-gtk3-demo.exe instead of just
gtk3-demo.exe (like it was before commit
53083ea7b423482b)
https://bugzilla.gnome.org/show_bug.cgi?id=692638
Cosimo Cecchi [Fri, 1 Feb 2013 16:10:30 +0000 (17:10 +0100)]
scrolledwindow: deprecate gtk_scrolled_window_add_with_viewport()
https://bugzilla.gnome.org/show_bug.cgi?id=693015
Cosimo Cecchi [Fri, 1 Feb 2013 16:22:13 +0000 (17:22 +0100)]
Don't use gtk_scrolled_window_add_with_viewport() in tests
https://bugzilla.gnome.org/show_bug.cgi?id=693015
Cosimo Cecchi [Fri, 1 Feb 2013 15:08:09 +0000 (16:08 +0100)]
Don't use gtk_scrolled_window_add_with_viewport() internally
Just use gtk_container_add() instead.
https://bugzilla.gnome.org/show_bug.cgi?id=693015
Cosimo Cecchi [Fri, 1 Feb 2013 16:03:44 +0000 (17:03 +0100)]
scrolledwindow: make gtk_scrolled_window_add() smart
There's really no reason why we shouldn't automatically create a
GtkViewport when the widget added to GtkScrolledWindow is not a
GtkScrollable, instead of just printing a g_warning.
Copy the viewport special case into the scrolled window implementation
of gtk_container_add().
https://bugzilla.gnome.org/show_bug.cgi?id=693015
Matthias Clasen [Sat, 2 Feb 2013 03:53:35 +0000 (22:53 -0500)]
Fix a few parameter mismatches in the symbols
Matthias Clasen [Sat, 2 Feb 2013 03:52:24 +0000 (22:52 -0500)]
Make new state flags show up in the docs
Matthias Clasen [Sat, 2 Feb 2013 03:52:04 +0000 (22:52 -0500)]
Add new symbols
Matthias Clasen [Sat, 2 Feb 2013 03:51:32 +0000 (22:51 -0500)]
Add new symbols to docs
Matthias Clasen [Sat, 2 Feb 2013 03:09:28 +0000 (22:09 -0500)]
Include gtklevelbaraccessible.h in gtk-a11y.h
Matthias Clasen [Sat, 2 Feb 2013 03:09:08 +0000 (22:09 -0500)]
Add new fullscreen symbols
Gheyret Kenji [Sat, 2 Feb 2013 03:15:17 +0000 (12:15 +0900)]
Updated Uyghur translation
Signed-off-by: Gheyret Kenji <gheyret@gmail.com>
Matthias Clasen [Sat, 2 Feb 2013 02:59:09 +0000 (21:59 -0500)]
Use consistent capitalization of demo titles
Matthias Clasen [Sat, 2 Feb 2013 02:58:34 +0000 (21:58 -0500)]
Avoid perl warnings
Apparently, defined is not cool anymore.
Matthias Clasen [Sat, 2 Feb 2013 02:56:25 +0000 (21:56 -0500)]
Make the text look a bit nicer
Add a margin around the text, and some space between the title
and the body of the info tab.
Matthias Clasen [Sat, 2 Feb 2013 02:46:07 +0000 (21:46 -0500)]
Set the notebook to be scrollable
The pixbufs example has just too many files..
Matthias Clasen [Sat, 2 Feb 2013 02:38:40 +0000 (21:38 -0500)]
Updates for 3.7.8
Matthias Clasen [Sat, 2 Feb 2013 01:15:56 +0000 (20:15 -0500)]
Revert "Forgotten file"
This reverts commit
1d72682332cfac909e62f3ba1cf3d7ee3c7d1490.
Matthias Clasen [Sat, 2 Feb 2013 00:58:04 +0000 (19:58 -0500)]
Don't strip whitespace from ui files
That turns them into gibberish when we show them in the ui.
Benjamin Otte [Sat, 2 Feb 2013 00:42:04 +0000 (01:42 +0100)]
cssimage: Only load image data when needed
Saves ~6MB of memory per application in the Adwaita I am using - at
least until the app starts using all the images in the theme, because
the code doesn't discard images yet once they were loaded.
https://bugzilla.gnome.org/show_bug.cgi?id=692934
Benjamin Otte [Sat, 2 Feb 2013 00:11:25 +0000 (01:11 +0100)]
cssimage: Add a getter
This will be needed in the next commit.
https://bugzilla.gnome.org/show_bug.cgi?id=692934
Benjamin Otte [Fri, 1 Feb 2013 23:23:31 +0000 (00:23 +0100)]
cssimage: Return the loaded image from compute()
This way, we don't keep the indirection when actually rendering the
image.
https://bugzilla.gnome.org/show_bug.cgi?id=692934
Benjamin Otte [Fri, 1 Feb 2013 22:15:27 +0000 (23:15 +0100)]
css: Split out GtkCssImageSurface
This is essentially a GtkCssImage for a cairo_surface_t and is a pretty
much straight up copy of GtkCssImageUrl. But we want to implement lazy
loading and animations, so GtkCssImageUrl is going to gain new
features...
https://bugzilla.gnome.org/show_bug.cgi?id=692934
Benjamin Otte [Wed, 2 Jan 2013 14:27:00 +0000 (15:27 +0100)]
cssimage: Store the URI we're loaded from
I'd like to use it when printing the value, but I haven't found a way to
do that sanely yet, as I'd need to be able to print relative paths for
make check to work (otherwise the srcdir would blow things up). And we
use a GString to output to, so there's no way to attach a base dir to
that.
If anyone has an idea how to achieve that, poke me. Having the real
filename in debug prints sounds like a very good idea to me.
https://bugzilla.gnome.org/show_bug.cgi?id=692934
Benjamin Otte [Fri, 1 Feb 2013 23:21:15 +0000 (00:21 +0100)]
gtk-demo: Fix geniclude.pl.in to not look for extra files
This was supposed to be fixed in
08667728190dcd7e19ddbbead4add714fab23364 but I fixed the generated
geninclude.pl. Oops.
Benjamin Otte [Fri, 1 Feb 2013 20:56:36 +0000 (21:56 +0100)]
gtk-demo: Replace logo with a transparent one
That way, we don't have to make it transparent in all the demos.
Benjamin Otte [Fri, 1 Feb 2013 18:02:56 +0000 (19:02 +0100)]
gtk-demo: Move resources into the tests they belong
This also gets rid of the nasty @import("resource:///...") lines in the
css files.
Benjamin Otte [Fri, 1 Feb 2013 17:58:40 +0000 (18:58 +0100)]
gtk-demo: Remove custom CSS demo
Custom CSS is something that we don't want to advertise as there are too
many pitfalls for using it correctly. So remove the demo for it.
Benjamin Otte [Fri, 1 Feb 2013 17:56:10 +0000 (18:56 +0100)]
gtk-demo: Remove file lists from demo data
We can get it from parsing resources now, so no need to manually add
them.
Benjamin Otte [Fri, 1 Feb 2013 17:21:56 +0000 (18:21 +0100)]
gtk-demo: Display all resources on the right side
This way, people know what stuff we are loading.
And instead of listing all the files in the top (and forgetting things),
we just take them from the resources list.
Christian Kirbach [Fri, 1 Feb 2013 20:27:28 +0000 (21:27 +0100)]
Updated German translation
Mike Gorse [Mon, 3 Dec 2012 22:07:23 +0000 (16:07 -0600)]
Add accessibility for GtkLevelBar and value test
Benjamin Otte [Fri, 1 Feb 2013 16:41:56 +0000 (17:41 +0100)]
gtk-demo: Stop installing files
As everything is handled via resources now, there's no need to install
the files anymore.
Benjamin Otte [Fri, 1 Feb 2013 16:38:08 +0000 (17:38 +0100)]
gtk-demo: Remove demo_find_file() function
It's not used anymore. With it, the demo-common.h header is not needed
anymore and is removed, too (and all the needless includes).
Benjamin Otte [Fri, 1 Feb 2013 16:01:10 +0000 (17:01 +0100)]
scrolledwindow: Use local variables
This (a) makes the code look nicer, and (b) works for non-scrollables
Benjamin Otte [Fri, 1 Feb 2013 13:46:13 +0000 (14:46 +0100)]
gtk-demo: Load icon from resource
Benjamin Otte [Wed, 30 Jan 2013 22:16:16 +0000 (23:16 +0100)]
gtk-demo: Display extra files from resources
Benjamin Otte [Wed, 30 Jan 2013 22:07:45 +0000 (23:07 +0100)]
xxx: Add source files
Benjamin Otte [Wed, 30 Jan 2013 22:05:12 +0000 (23:05 +0100)]
gtk-demo: Don't use subfolders for resources
This confuses the notebook that is displaying them.
Benjamin Otte [Wed, 30 Jan 2013 20:11:32 +0000 (21:11 +0100)]
gtk-demo: Don't use aliases for filenames
This is necessary so the files displayed in the left notebook match the
files referenced in the source code.
Benjamin Otte [Wed, 30 Jan 2013 15:57:13 +0000 (16:57 +0100)]
gtk-demo: Port pixbufs example to resources
Benjamin Otte [Wed, 30 Jan 2013 15:46:20 +0000 (16:46 +0100)]
gtk-demo: Port textview example to resources
Benjamin Otte [Wed, 30 Jan 2013 15:24:39 +0000 (16:24 +0100)]
image: Make gtk_image_new_from_resource() load animations
Requires new gdk-pixbuf APIs to load animations from resources.
Benjamin Otte [Tue, 29 Jan 2013 21:24:42 +0000 (22:24 +0100)]
gtk-demo: Port images example to resources
Benjamin Otte [Tue, 29 Jan 2013 20:42:16 +0000 (21:42 +0100)]
gtk-demo: Port images example to GInputStream
Benjamin Otte [Tue, 29 Jan 2013 16:21:19 +0000 (17:21 +0100)]
gtk-demo: Port iconview example to use resources
Benjamin Otte [Tue, 29 Jan 2013 16:14:34 +0000 (17:14 +0100)]
gtk-demo: Port appwindow example to resources